﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfTool
{
    public class AppConfig
    {
        private static IConfiguration Config = new ConfigurationBuilder().SetBasePath(Environment.CurrentDirectory).AddJsonFile("appsettings.json", false, true).Build();

        public static string GetString(string key)
        {
            return Config[key] ?? "";
        }
    }
}
